package com.xiaojie.loabalance;

import org.springframework.cloud.client.ServiceInstance;

import java.util.List;

/**
 * 策略设计模式
 */
public interface LoadBalancer {
    /**
     * 集群列表获取单个实例
     * @param list
     * @return
     */
    ServiceInstance getSingleAddress(List<ServiceInstance> list);
}
